#include "ManHardware.h"
#include "Main_constant.h"


BOOL ManHardware::SetParam(WORD memId, Ndata* pSrcParam) {

	return false;
}

BOOL ManHardware::GetParam(WORD memId, Ndata* pDstParam) {

	switch (memId)
	{
	    //class
		case 0: {
			pDstParam->SetDataBody(STR_TYPE, "Hardware", 16);
			break;
		}
		 //freq
		case 1: {
			pDstParam->SetDvb(50);
			break;
		}
		 //vinTypes
		case 2: {
			DWORD dvba[10] = { 10001, 10001, 31010, 50318, 0, 0, 0, 0, 0, -0 };
			for (int i = 0; i < 10; i++) {
				dvba[i] = Int2Dvb(dvba[i]);
			}
			pDstParam->SetDataBody(DVBA_TYPE,dvba, 10*4);
			break;
		}//voutTypes
		case 3: {
			DVB dvba[5] = { 21010, 31010, 0, 0, -0 };
			for (int i = 0; i < 5; i++) {
				dvba[i] = Int2Dvb(dvba[i]);
			}
			pDstParam->SetDataBody(DVBA_TYPE, dvba, 10 * 5);
			break;
		}
		default:
			break;
	}


	return true;
}